import tkinter as tk

window = tk.Tk()
window.title("小A君")
window.geometry("200x200")
'''输入内容显示方式'''
e = tk.Entry(window,show = "*")

e.pack()
'''在中间插入'''
def insert_point():
    var = e.get()
    t.insert("insert",var)
'''在结尾插入，end可替换成1.1，表示插入第一行第一列'''
def insert_end():
    var = e.get()
    t.insert("end",var)
    
b1=tk.Button(window,text = "insert point",width = 15,height = 2,
             command = insert_point)
b1.pack()

b2=tk.Button(window,text = "insert end",width = 15,height = 2,
             command = insert_end)
b2.pack()

t = tk.Text(window,height = 2)
t.pack()

window.mainloop()
'''不断循环刷新'''

